package com.zsx.shopping.common.api.cart.vo;

import lombok.Data;

import java.math.BigDecimal;

@Data
public class CartItemVO {

    private Long skuId;

    private String title;

    private String image;

    private BigDecimal price;

    private Integer count;

    private String saleAttrs;

    public BigDecimal getSubtotal() {
        return price.multiply(new BigDecimal(count));
    }
}
